<template>
    <div class="content">
        <!-- <Tips v-show="tipShow" :msg="tips"/> -->
        <div class="title">
            <p>我的发布</p>
        </div>
        <AboutList :list="myPosts"/> 
   </div>
</template>

<script>
    import Tips from '@/components/Tips'
    import AboutList from '@/components/AboutList'
    export default {
        name:"MySend-Component",
        components:{Tips,AboutList},
        data(){
            return {
                tipShow:false,
                tips:'',
            }
        },
        computed:{
            myPosts(){
               return this.$store.state.About.myPosts.reverse()
            }
        },
        methods: {
            getMyPosts(){
                this.$store.dispatch('About/getMyPosts')
            }
        },
        mounted() {
            this.getMyPosts()
        },
    }
</script>

<style scoped lang="less">
    .content{
        width: 100%;
        overflow: auto;
        .title{
            font-size: 1.8vw;
            margin-top: 2.6vw;

            p{
                padding-left: 1.3vw;
                margin:0 auto;
                background: #fff;
                width: 90%;
                height:5.2vw;
                line-height: 5.2vw;
            }
        }
    }
</style>